package com.jyx.spring.action.service.impl;

import com.jyx.spring.action.service.IPerformer;

public class PerformerOfJuggler implements IPerformer {

	/** 默认可以抛三个袋子 */
	private int beanBags = 3;
	
	/** 构造：确定对象抛袋子数量 */
	public PerformerOfJuggler(int beanBags){
		this.beanBags = beanBags;
	}
	
	/** 输出：对象可以做的事情 */
	@Override
	public void perform() {
		System.out.println("Juggle " + beanBags + " beanBags!");
	}

}
